home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / boot / initrd.img-2.6.28-15-generic / initrd.img-2.6 / scripts / casper-bottom / 10custom_installation < prev    next >
Encoding:
Text File  |  2009-10-12  |  535 b   |  29 lines

  1. #! /bin/sh
  2.  
  3. PREREQ=""
  4. DESCRIPTION="Running casper hooks..."
  5.  
  6. . /scripts/casper-functions
  7.  
  8. prereqs ()
  9. {
  10.     echo "$PREREQ"
  11. }
  12.  
  13. case $1 in
  14. # get pre-requisites
  15. prereqs)
  16.     prereqs
  17.     exit 0
  18.     ;;
  19. esac
  20.  
  21. if [ -d /custom-installation ]; then
  22.     cp -af /custom-installation/ /root/custom-installation || true
  23.     cp -af /custom-installation/iso-override/* /root/ || true
  24.     rm -rf /custom-installation/iso-override || true
  25.     if [ -x /custom-installation/hooks/casper-bottom.sh ]; then
  26.         /custom-installation/hooks/casper-bottom.sh
  27.     fi
  28. fi
  29.